/**
 * Created by Administrator on 2016/6/21.
 */
import React from 'react';
import styles from '../../style.css';

class Avatar extends React.Component{
  render(){
    return (
      <div>
        <div className={styles.avatar}>
          <img src={this.props.src} alt={this.props.name} />
          <h3>{this.props.name}</h3>
        </div>
      </div>
    )
  }
}

export default class Example1 extends React.Component{
  render(){
    return (
      <div className={styles.app}>
        <Avatar src="./img/Avatar1.png" name="hhh"/>
      </div>
    )
  }
}